<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport"
	content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="format-detection" content="telephone=no" />
<meta http-equiv="Cache-Control"
	content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link rel="stylesheet" href="stylesheets/zui.min.css" />
<link rel="stylesheet" href="stylesheets/main.css" id="css" />
<script src="javascripts/jquery-1.10.1.min.js"></script>
<script src="javascripts/footer.js"></script>
<script src="javascripts/main.js"></script>
<title>斯迈普解盘侠</title>
<script>


     //验证当前本地用户名和密码是正确,只需第一次进入页面时进行验证
     	$(function(){
     		//计数
     		if(sessionStorage.pagecount){
     		  sessionStorage.pagecount=Number(sessionStorage.pagecount) +1;
     		  }else{
     		  sessionStorage.pagecount=1;
     		 }
     		if(sessionStorage.pagecount == '1'){
 	    		var userInfo = getLocalUserInfo();
 	    		var code = userInfo.code;
	    		var pwd =  userInfo.pwd;
 				$.ajax({
					url:'../authen/login.do',
 					type:'post',
 					data:{code:code,pwd:pwd},
 					dataType:'json',
 					success:function(d){
 						if(!d.success){
 							window.localStorage.setItem('userInfo',null);		
 						} 
 					}
 				});
     		}
     	});
    	</script>
</head>
<body>
<iframe id="workframe"   width=100%  height=800px; scrolling="no" src='index.html'>
</iframe>
<footer class="nav-footer">
			<div class="col-xs-3" id="hall" >
				<i class="icon icon-home"></i>
				<h4>解盘</h4>
			</div>
			<div class="col-xs-3" id="notify"  >
				<i class="icon icon-volume-up"></i>
				<h4>喊单</h4>
			</div>
			<div class="col-xs-3" id= "news" >
				<i class="icon icon-globe"></i>
				<h4>资讯</h4>
			</div>
			<div class="col-xs-3" id="my" >
				<i class="icon icon-user"></i>
				<h4>个人中心</h4>
			</div>
</footer>
</body>

</html>